import {createRouter,createWebHashHistory} from "vue-router";


export default createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:"/",
            redirect:"/Login"
        },
        {
            path:"/Login",
            component:()=>import("../views/Login.vue")
        },
        {   
            name:"Admin",
            path:"/Admin",
            component:()=>import("../views/Admin/Index.vue"),
            redirect: "Admin/Home",
            children:[
                {
                    // id:"1",
                    name:"Home",
                    path: "Home",
                    component: () => import("../views/Admin/Home/Home.vue")
                },
            ]      
        }
    ]
});
